<?php

namespace app\common\model;

use think\Model;

class SiteConfig extends Model
{
    //获取配置
    public function getinfo(){
        $info = $this->where('Id',1)->find();
        return $info;
    }
    //更新配置
    public function upinfo($info){
        if($this->save($info,['Id'=>1])){
            return true;
        }
        return false;
    }
}
